package com.lcm.algorithm.datatest.array;

import java.util.Arrays;

/**
 * @description:
 * @author: lcm
 * @create: 2020-04-10 17:08
 **/

public class Sove {

    public static void main(String[] args){
        char[][] chars=new char[][]{{'O','X','O'},{'X','O','X'},{'O','X','O'}};
        solve(chars);
        for(char[] c:chars){
            System.out.println(Arrays.toString(c));
        }
    }

    public static void solve(char[][] board) {
        for(int i=1;i<board.length-1;i++){
            for(int j=1;j<board[0].length-1;j++){
                if(board[i][j]=='O'){
                    board[i][j]='X';
                }
            }
        }
    }
}
